package shmged.com.shlcm.utils;

import java.text.SimpleDateFormat;
import java.util.TimeZone;

public class CmDateHelper {
	public static final SimpleDateFormat PATTERN_FOLDER =newSimpleDateFormat("yyyy-MM");
	
	private static SimpleDateFormat newSimpleDateFormat(String pattern,TimeZone zone){
		SimpleDateFormat sdf = new SimpleDateFormat(pattern);
		if(null != zone){
			sdf.setTimeZone(zone);
		}else{
			sdf.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
		}
		return sdf;
	}
	
	private static SimpleDateFormat newSimpleDateFormat(String pattern){
		return newSimpleDateFormat(pattern,TimeZone.getTimeZone("Asia/Shanghai"));
	}


}
